import { DbService } from './services/db.service';
import { FractionService } from './services/fraction.service';
import { FractionSchema } from './schemas/fraction.schme';

import { Module, Global } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { FractionController } from './fraction.controller';
import { APP_INTERCEPTOR } from '@nestjs/core';
import { CommonInterceptor } from 'services/common.interceptor';
@Global()
@Module({
  imports: [MongooseModule.forFeature([{ name: 'fraction', schema: FractionSchema }])],
  controllers: [FractionController],
  providers: [FractionService,DbService ],
  exports:[DbService]
})
export class FractionModule {}